﻿package com.obas.access.business.service
{
	import com.ease.common.vo.Ordering;
	import com.ease.common.vo.Pagination;
	import com.ease.model.Model;
	import com.obas.flex.common.proxy.DefaultServiceProxy;
	import mx.collections.ArrayCollection;

	public class ParameterTypeAccessService extends DefaultServiceProxy
	{
    	private static const SERVICE_NAME:String = "parameterTypeAccessService";

  		public function ParameterTypeAccessService() {
     		super(SERVICE_NAME);
  		}

		/**
    */
		public function 
			/* flex: mx.collections.ArrayCollection */ 
			/* java: java.util.List */
		findByTestcaseScriptId(
 			testcaseScriptId:Number  /* long */,
 			callback:Function = null,
 			context:Object = null
 			):void {
    		callService("findByTestcaseScriptId", [testcaseScriptId], callback, context);
 		}

		/**
    */
		public function 
			/* flex: com.ease.model.Model */ 
			/* java: com.ease.model.Model */
		findOne(
 			parameter:Object  /* java.util.Map<java.lang.String,java.lang.Object> */,
 			callback:Function = null,
 			context:Object = null
 			):void {
    		callService("findOne", [parameter], callback, context);
 		}

		/**
    */
		public function 
			/* flex: com.ease.common.vo.Pagination */ 
			/* java: com.ease.common.vo.Pagination */
		findPagination(
 			statement:String  /* java.lang.String */,
 			parameter:Object  /* java.util.Map<java.lang.String,java.lang.Object> */,
 			ordering:com.ease.common.vo.Ordering  /* com.ease.common.vo.Ordering */,
 			pagination:com.ease.common.vo.Pagination  /* com.ease.common.vo.Pagination<> */,
 			callback:Function = null,
 			context:Object = null
 			):void {
    		callService("findPagination", [statement, parameter, ordering, pagination], callback, context);
 		}

		/**
    * count
    * 
    */
		public function 
			/* flex: int */ 
			/* java: int */
		count(
 			statement:String  /* java.lang.String */,
 			parameter:Object  /* java.util.Map<java.lang.String,java.lang.Object> */,
 			callback:Function = null,
 			context:Object = null
 			):void {
    		callService("count", [statement, parameter], callback, context);
 		}

		/**
    */
		public function 
			/* flex: mx.collections.ArrayCollection */ 
			/* java: java.util.List */
		find(
 			statement:String  /* java.lang.String */,
 			parameters:Object  /* java.util.Map<java.lang.String,java.lang.Object> */,
 			skipResult:int  /* int */,
 			maxResult:int  /* int */,
 			ordering:com.ease.common.vo.Ordering  /* com.ease.common.vo.Ordering */,
 			callback:Function = null,
 			context:Object = null
 			):void {
    		callService("find", [statement, parameters, skipResult, maxResult, ordering], callback, context);
 		}

		/**
    */
		public function 
			/* flex: Number */ 
			/* java: long */
		sequence(
 			callback:Function = null,
 			context:Object = null
 			):void {
    		callService("sequence", [], callback, context);
 		}

		/**
    * @param ordering 
    * @param userContext 
    * @return  
    */
		public function 
			/* flex: mx.collections.ArrayCollection */ 
			/* java: java.util.List */
		findAll(
 			ordering:com.ease.common.vo.Ordering  /* com.ease.common.vo.Ordering */,
 			callback:Function = null,
 			context:Object = null
 			):void {
    		callService("findAll", [ordering], callback, context);
 		}

		/**
    * @param id 
    * @param userContext 
    * @return  
    */
		public function 
			/* flex: com.ease.model.Model */ 
			/* java: com.ease.model.Model */
		findById(
 			id:Number  /* long */,
 			callback:Function = null,
 			context:Object = null
 			):void {
    		callService("findById", [id], callback, context);
 		}

		/**
    */
		public function 
			/* flex: mx.collections.ArrayCollection */ 
			/* java: java.util.List */
		saveList(
 			models:mx.collections.ArrayCollection  /* java.util.List<> */,
 			callback:Function = null,
 			context:Object = null
 			):void {
    		callService("saveList", [models], callback, context);
 		}

		/**
    */
		public function 
			/* flex: mx.collections.ArrayCollection */ 
			/* java: java.util.List */
		removeList(
 			models:mx.collections.ArrayCollection  /* java.util.List<> */,
 			callback:Function = null,
 			context:Object = null
 			):void {
    		callService("removeList", [models], callback, context);
 		}

		/**
    * @param model 
    * @param userContext 
    * @return  
    */
		public function 
			/* flex: com.ease.model.Model */ 
			/* java: com.ease.model.Model */
		remove(
 			model:com.ease.model.Model  /*  */,
 			callback:Function = null,
 			context:Object = null
 			):void {
    		callService("remove", [model], callback, context);
 		}

		/**
    * @param model 
    * @param userContext 
    * @return  
    */
		public function 
			/* flex: com.ease.model.Model */ 
			/* java: com.ease.model.Model */
		save(
 			model:com.ease.model.Model  /*  */,
 			callback:Function = null,
 			context:Object = null
 			):void {
    		callService("save", [model], callback, context);
 		}

		/**
    * @param model 
    * @param userContext 
    * @return  
    */
		public function 
			/* flex: com.ease.model.Model */ 
			/* java: com.ease.model.Model */
		create(
 			model:com.ease.model.Model  /*  */,
 			callback:Function = null,
 			context:Object = null
 			):void {
    		callService("create", [model], callback, context);
 		}

		/**
    * @param model 
    * @param userContext 
    * @return  
    */
		public function 
			/* flex: com.ease.model.Model */ 
			/* java: com.ease.model.Model */
		update(
 			model:com.ease.model.Model  /*  */,
 			callback:Function = null,
 			context:Object = null
 			):void {
    		callService("update", [model], callback, context);
 		}
	}
}